package com.huashizhaoxi.lionapp.dao;

import com.huashizhaoxi.lionapp.entity.Banner;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BannerMapper {

    @Select("select * from index_banner order by sequence asc")
    List<Banner> getAllBanner();

    @Delete("delete from index_banner")
    void deleteAllBanner();


    void insertBanner(List<Banner> bannerList);
}
